package com.touchfired.common.core.event.impl;

import com.touchfired.common.constants.ClientInfo;
import com.touchfired.common.core.event.BaseEvent;
import lombok.Getter;

import java.util.List;

/**
 * 聊天事件
 *
 * @author 幸佳俊
 */
@Getter
public class ChatEvent extends BaseEvent {

    /** 说话者 */
    private ClientInfo clientInfo;

    /** 接受者 */
    private List<ClientInfo> clientInfos;

    /** 说话内容 */
    private String content;

    public ChatEvent(ClientInfo clientInfo, List<ClientInfo> clientInfos, String content) {
        super(clientInfo);
        this.clientInfo = clientInfo;
        this.clientInfos = clientInfos;
        this.content = content;
    }
}
